package com.youaishujuhui.devops.web.po.db;

import java.util.ArrayList;
import java.util.List;

import com.youaishujuhui.devops.web.domain.game.GameProcess;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class GameDbBakPO implements Comparable<GameDbBakPO> {

	private GameProcess gameProcess;
	
	private List<GameDbBakItemPO> items = new ArrayList<>();

	private String color;

	@Override
	public int compareTo(GameDbBakPO o) {
		if (getColor().equals(o.getColor())) {
			return 0;
		}
		
		if (getColor().equals("White")) {
			return 1;
		}
		
		return -1;
	}


	
}
